package com.cxk.hr.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cxk.hr.pojo.Attendance;
import com.cxk.hr.pojo.Department;
import com.cxk.hr.pojo.Employee;
import com.cxk.hr.pojo.Overtime;

public interface AttendanceMapper {
	List<Attendance> findAll();

	List<Overtime> findAllOver();

	Overtime findByid(Integer employeeNumber);

	Integer updatetime(Overtime overtime);

	Integer delOver(Integer employeeNumber);

	List<Department> findAllDep();

	List<Employee> findbydep(Integer departmentnumber);

	Integer addOverTime(@Param("departmentNumber") Integer departmentNumber,
			@Param("employeeNumber") Integer employeeNumber, @Param("date") Date date);

	void insert(@Param("num") Integer employee_number, @Param("type") String type, @Param("date") Date dateamYY,
			@Param("time") Date dateHH);

	Attendance findAtten(@Param("enum") Integer employee_number, @Param("day") Date dateYY);

	void updateAtten(@Param("num") Integer employee_number, @Param("starttype") String starttype,
			@Param("starttime") Date dateamHH, @Param("day") Date dateYY);

	void updateendAtten(@Param("num") Integer employee_number, @Param("endtype") String endtype,
			@Param("timetype") String timetype, @Param("endtime") Date endtime, @Param("day") Date dataYY);
}
